import base from '@/api/baseurl';
import request from '@/utils/request'

export function findRules(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/findRules',
    method: 'get',
    params: query
  })
}

//单行删除
export function delRules(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/delRules',
    method: 'get',
    params: query
  })
}


export function addRules(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/addRules',
    method: 'post',
    data
  })
}

export function updateRules(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/updateRules',
    method: 'post',
    data
  })
}
